<%@codepage="65001"%> 
<!--#include file="../Include/conn.asp" -->
<!--#include file="../Include/config.asp" -->
<%SortID=request.QueryString("SortID")
if SortID="" or not isnumeric(SortID) then
Response.Write "<script>alert('参数错误！');javascript:history.go(-1);</script>" 
Response.End()
end if
set rs=server.createobject("adodb.recordset") 
exec="select * from zych_Type where SortID="&SortID
rs.open exec,conn,1,1
if rs.eof and rs.bof then
Response.Write "<script>alert('参数错误了！');javascript:history.go(-1);</script>" 
Response.End()
else
SortName=rs("SortName")
SortPath=rs("SortPath")
SortPath_dh=rs("SortPath")
TopSortID=rs("TopSortID")
TopSort="type"&TopSortID
PageSize=rs("PageSize")
SortID=rs("SortID")
SortType=rs("SortType")
Temp=rs("Temp")
PageTitle=rs("PageTitle")
Content=rs("SortContent")
Keywords=rskeyword(rs("PageKeywords"),zychkeywords)
Desc=rskeyword(rs("PageDesc"),zychdescription)
end if
rs.close
set rs=nothing

if Temp<>"" then
	echo ob_get_contents(zych_templatedir&Temp)
else
    echo "没有找到该频道的模板，请设置!"
end if
%>